Fixed crash when printing an array