fix scat_freq bug (due to 4d)