fix bearcat getBean state check bug