fixed issue in logging