Resolved #45.

Bug was caused by forgetting to scope query to only problems in the
current contest. The code was actually looking at ALL problems,
regardless of the contest