Fix an inconsistency in max_step()