fix has behavior when flag are not define at buildtime