fixed a bug of load plugins