Fixed initialisation of empty arrays.