fixed sub-event identification bug wherein they were bring missed due to an off by one error in array indexing