Fixes an internal enum conversion bug;