Fix whole expression checking for tag with ruby code & script