fixed print out in log