correct the writing of ts plugin.