fix the issue when a feature[elements] is nil