fix atmosphere bug