Fixed bool function