Fixed log output for missing characters