fix legacy function

bug introduced in 65af7c25671487c48b47993b0dadcf7ac4ca2643
function no longer used (was for GS 3.0), will probably remove it, but
anyway better fix it.