fix routing to allow 0 in ids