fix bug with writing to $01