fixed a scaling/jitering bug