s4-provision: Fixed typos and redundant code