remove unnecessary compact since missing value raises error