Issue #5600: correct some mistakes of Cocos GUI