Fixing https://github.com/cellnopt/cellnopt/issues/36