Issue #105, index passed to transform function is wrong