Fix couple of warnings on log