error in code

The top-tags and terms were reversed.