Fixed rendering bugs while manipulating the scale