fixed some bugs / typos with new scale factor code
more fixes for bwscaling ban from npksum