bugfix in bin script