Fixed animation issues for ipad