Fix KeyError exception on non-LSB systems