Fixed reditect problem