Fixed difference operator

Changed from deprecated <> to !=