fix inspection errors