Fixed ios bug with animations