work around brfs bug and typedarray bug