fixed scaling issue