fix load-plugins bug