bugfix by check command search in bool statement