Fixed typo of Edit mode sample code