fixed HansardReference lookup logic