Fixed a bug with goToSlide()