clean init
fix 'invalid size of read 1'