Fixed a bug where setting a new grid would wipe away all tile costs.