silence gcc warning: ‘n_bands’ may be used uninitialized