fixed scaling issues