Bug with control group helper not writing the closing div.

Fixed bug where was control group helper was not writing the closing div.