Fix event to hide bar