redirect method fix