Fix transactions index bug