Fixed redirect and fixed req file