fix some bugs (atmosphere)