fix null filepath bug in delete operation