Fixed #5195: Fix issues after sync cocos2d-x v3