Fixed issue with home page running in the history page