fix the bug  in mixRef.c which unproper use memset