Fixed last_nk problem on contact reduction