Fixed 'last page viewed' bug