fix tpr drawing bug