Fixes __parent__ errors