fixed auto generate