Fixed one of examples - using correct API