bug in delete fact