Fix redirect back error