Fixed rounding errors which were causing second union to fail