grammars: fix resampling logic regression
#7424
+9
−8
Merged