Fix style generation