fix deletePath