Bug fix

Program no longer gets stuck in a loop between two directories when the
Back button is pressed