auto register fix