fix https://github.com/cellnopt/cellnopt/issues/17