Fix the wrong console print out issue