Fix compile: i -> j