Fixed cocostudio bugs

Fixed cocostudio bugs