Fixes in atmospheric correction