fixed typo which set a local chimin when I meant for it to set a chimid