Fixed the exception when navigating to Home view from any other view