fixed weird redirect log in error