Fixed registerAction redirect and import.