fix for array size bigger > 255