fix remove path bug