diff --git a/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs b/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs
index 97b5aee320f3e5fd242ff04da5a27dc4eeee7016..2bf2cc34444fcce969876bf762e94e8711fbca25 100644
--- a/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs
+++ b/Tools/ArdupilotMegaPlanner/Utilities/ParameterMetaDataParser.cs
@@ -208,7 +208,7 @@ namespace ArdupilotMega.Utilities
                            {
                               // This is the end index for a substring to search for parameter attributes
                               // If we are on the last index in our collection, we will search to the end of the file
-                              var stopMetaIdx = (x == metaIndicies.Count - 1) ? subStringToSearch.Length : metaIndicies[x + 1];
+                              var stopMetaIdx = (x == metaIndicies.Count - 1) ? subStringToSearch.Length : metaIndicies[x + 1] + 1;
 
                               // This meta param string
                               var metaString = subStringToSearch.Substring(metaIndicies[x], (stopMetaIdx - metaIndicies[x]));