fixed error in reading config