fixed bug in constructor of gft