Fixed bug in style controller.