fix bugs from ass2 test74