Fix off-by-one error in length of monitoring event when extension is given