Fix Enum moving cursor

Fix Enum moving cursor