fixing mapping bug for enum value