Apply some corrections