Fix plugin calling bug