fixed error on memset