fix bug when deleting path
fix #68