Fixed a bug with negative enums.