Fixed a bug in arraysize calc