fix exception crash on bad actoins