[plugins] Fix small bugs.