fix for empty terms