preventing problems when setting an item as changed that is not in the container
fixing problem when reattaching the table