Fix a bug in tvrage lookups