index fix in baseline shift block

wrong cycle var was used in the code block treating baseline shift mode