fixed bug when adding to ribbon
Merge remote-tracking branch 'github/master'