Fixed problem with rubberband animation and loopType