optimize memset
fix memset
fix memset call from makeSetValues