Fixed config reference bug