make sure to correctly direct root elements when parent key match record is not found