fix undefined constant
show problem state in search result