Alberta’s government has made last-minute changes to a bill after the province’s chief electoral officer warned it would impede the independence of his office.