Fixed 2d array problem