fix config read from file