Fix for TERM