fix bool check