fixed calc of last class upon death