fix register logging