fixing an exception seen in logs