public report sharing tpl js error fix