fix autocomplete loader for register and main