fixed deleting path issue