bugfix: break when write all