fixed animation errors for selectNext() and selectPrevious()