Fix offby1 in VPA sequence (fixes issue 582)