another bug fix #14

Global.ID was not correctly setted after graf load