fixed off by one error in notification plugin