Fixed bug in extractTerm
Fixed bug in extractTerm
If block with Else block added