fixed scaling problem