fix 2 gmscompat race conditions