fix Modal transition animation when closing