fixed set untouched default

set state to 0 if it has no state