fix memset() mistake