fixed bug in band_analysis