Fixed back button / history navigation issue.