Fix outdated function call in sample code in README