fixed crashings in sim/ca???