fix bug terms