One-character fix (k should start at 0).