Fix for Redirect Detection