Bug fix. Handle incorrect style type gracefully