fixed null problem of mapped hp term