one logical bug on bogus write

fixed