A small error for type from double to boolean