fix bug when using with other plugin