Fix bug in calculation of ann parameters vector indexes

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>