fix #301
Merge pull request #306 from JuliaOpt/fix301

fix #301