fix a bug of weight scale