fixed gm flag area bug