bugfix in compute MWCS