Fix typed arrays