Fixed three bugs in event editor.