Call correct api function in GetStockObject, fixes #4