fixed config reference bugs