fixing some mistaken logging