Fix bug on sourcetype=value

The return value was wrong, I fix it.