fixed bug in buildroute