fix a bug for param in model