remove field <bin> and fix errors