fixing bugs in deadmethods2