fix type errors on log output string