Fixed empty terms input bug