Fix memset to zero out the entire array