fix logging on registration