More robust tmp_bind