Fixed a array bug