fixed a bug in dep2bin.