fix bugs for leaving homework