Fixed KeyErrors on Bitmask import