Fixing syntax for _toppages_key function