Fixes for bin_spec.