fix bin

Also a small thing in index.js