Fix bug with custom tern plugin.