Fixed permanent events and clearing the screen