CGE: Fix warning in detection

Thanks clone2727 for reporting it