Fix errors and crashes on verticaltextview