Fixed small printArray bug