fix a few rare occasions where routes wouldnt match as expected