Fixed a problem with the 'back' function