Fix bug on check bool type