crash partially fixed

now crash happens much less