[fix] use the specific plugin indexes rather than assuming they are the last two in the list