fix cut-off code sample