Fixed a serious scaling problem