Prevent double redirect