Fix event resizing and time selection