Fix code snippet error