small fixes for the redirect