fixes router loop