fix typedarray condition bug