fixed retainFeatures cell array issue