change some semantic analysis errors