Fix pb with boolean and isXXX method