added fix for deleting foreign references of chair when chair is deleted