Fixed bugged arrays.

thanks to kokole