Corrected a wrong variable error in the EventHandler.