Bug of empty #WSUM fixed