fixed GSMat handle init