Fix bug with previous button locking up