avoid accessing NP in htmlTemplate