animation flip after switching bug fixed