fix a bug of user-model generation.