fixing animation bug on afterview