Fix problem with going back to the beginning.