j != k, fixed script error