Fixed bug when creating integer arrays