fixed mistake in inversing bools