fix Code model is not used.