fix bin bug