fix the bug when no gold data path is provided.