Fix contracting replies when contracting a thread too. #764