fixed bug on alloy context
fixed bug on enum painting
fixed bug on scope creation