fix auto register pages