Added valueerror catch in textplot