fixed crash due to old metadata format