You'll want to pass `i` as the second argument to `fx` and `fy`.