fixed bug while trying to access uninitialized
term.