Fix for multiple show/hide events firing