Fixed BIN loading bugs