fix bug when compile part of MoGS