correct errors for build