Fix crash caused by config path.