fix to animation transitions