fix for circular dependecny error when constant was unloaded with errors