Bugfix: we can't use -1 as an invalid value for bitfields.