fixed typo in advanced code example