Fix gallery no name error.