fix minor issue with logging