fix bug of property
add debug code