Fix animation bug for iPhones