fix switch animation