Merge pull request #52 from phuonghuynh/master

Fixed some bugs
Fix setting bar issue