minor fixes to avoid warning in logs