Minor bug fix in bitcoin code