Bug in delete conditions solved.