Fixed errors in Plugin.java