fixing raveState and resetting cloud opacity