fix typed array check