Fix MessageBox by using Enum