fixed auto generation errors