Minor bug on shape of array