Debug codes, catch errors and fix routes of edit homework