fixed minor bug with focus and default event.