Fix wrong index (j instead of k)