fixing wrong redirect