Fix some runtime errors

Fixed an error in plugin, made the config load before the Methods