Fixed bug where back button didn't behave as it should.