Clean up code of packet 9.