Fixing a problem with typed arrays that have no values