Fixes #1063.
Merge pull request #1064 from chebee7i/gmlbug

Fixes #1063.