Fixed an instance() singleton issue for helpers and libraries