use SG_CALLOC to init memory with 0 and fix mc ocas