fixed the "events dropdown problem"