Fix bug that was introduced affecting atmospheric extinction