fixed crash for empty expanded metadata