Fixed a bug where an exception would be thrown on OS X due to improperly declared enum