Fix error in bool passthrough function