fix for redirect url NullPointer