fixed console logging issue