fix processing model parameter when it has mixed case, e.g. nPerm
remove debug codes