fix minor bugs of cocostudio