Fix VLA warning

fix for #265 (1)