fixing bug https://github.com/cellnopt/cellnopt/issues/21