fix isBinary