fixed a bug with empty mass channels in STPTW