たびに requires to be lead with a の for nouns.

授業==たびに==宿題 dito