fixed error when bin already exists