fix loading addons with variables