fixed array resizing in nokia and d4d scripts