This should fix TERM once and for all