fix for wrong redirect