redirect working besides edge case