fix in remove() , only set parent to None if the removed item recognises the
parent