Bug in delete fixed