fixed a weird bug in routing stuff