Fix getting the iourl