(fix) Fixed inverted conditional in delete.