Fix issue with arrays appending.