fix bin save bug