Fixed issue with incorrect redirect