fixed weird compilation issues in labcg machine