changed sequence of plugins to workaround a bug