bug fix: incorrect memset