fix issue with boolean expression input (#12429)