fix bugs in ass3