fixed yScale and padding bug