fix bugs of add/del route