bugfix: added check for style not being defined