fix for "variable length array folded to constant array as an extension" error