fix routing bug