fix bug: use server type to find route path instead of server id