boolean type fixes