Fix the action not sending after switch animation complete