close debug flag
fix bug 1872