fix routeing bug