Fixed a function that retrieves a wiki id