Fixed a minor issue with show/hide animations