t4 error and instanceof not deleted