Fixed some incorrect indentations I did.
Fixed group resizing when a polygon is included. Restricted scaling factor to positive values.