bugs fixed at TypeArray