fix nil pointer when -conf is invalid