fixed bug where initial style was selected incorrectly