fix bug with loading config