Fixed a bug in bitfieldSize