Warning on converting int to bool fixed