fix some 1wire bugs