fix bug in routing.js