Command logging crash fix and target type addition of corpse.