Fixed error in code sample