fixed more bad memset usage