fix TODO too many nested blocks in SoundsTVC
fix some compile errors and warnings