fixed redirect problem after logout