fix bool flags