Fixing UNdefined index diff.