fix bugs that have been fixed in cocos 2.0