error with boolean