fix isTmp function