bug fix for style selection