small fix in delete