fix loading plugins