Fixed issue with redirecting to home