Fix after login redirect issue