Fix setBarStyle issue #24
Merge pull request #31 from azu/fix_setBarStyle

Fix setBarStyle issue