Fixed bug in isXXX utility functions.