Add debug option;Fix bug for no result