fixed some issue with configs.