Read config correctly