Minor changes

Output some debug information and revise a mistake