fix a bug with boolean values