Fixing array ref