Fixed wrong method call in code example