Fixed infinite recursion in terminal widget

removed some pessimization