fixed 1774:CAS client broken when using routes.py, thanks remco.boerma