fix matrix inversion zero bug, cloud layers, cloud speed