fix #10: '>' at the start of buf during 'open' state