Fixed transition events in show/hide