Fixing modal window animations