fixes typo in check for route flow