302 redirect issue fixed