fixing reference to config singleton