fix integer detection in url