wrong index on parameters