Fixes error in character logging syntax