rpt error fix

Fixes a client rpt error of undefined variable.