fixed possible logging issue
fixed possible logging issue