fixed getPreviousRoute