fixed saved statement index across views