bugfix in gmf.py