fix minor issue
add debug log