Built Failed due to bool-comparison