[plugins] director: fixes crash