I was facing the same issue and I used below mentioned code and after doing that I was not having any issue.
Hope it will help someone.
# find out what key code is mapping to the "less" and "greater" signs
$ xmodmap -pk | grep greater
60 0x002e (period) 0x003e (greater)
94 0x003c (less) 0x003e (greater) 0x007c (bar) 0x00a6 (brokenbar) 0x007c (bar) 0x00a6 (brokenbar)
# edit (or create) ~/.xmodmaprc and include the following line in it
keycode 94 = grave asciitilde
# run xmodmap
$ xmodmap ~/.xmodmaprc