fix nameplate widget throwing undefined function error