Fix bug when arraw size is zero