fix bug in bin