fixed minor issue with logging