Education

I don't understand how this is true when tuition requires payment at the beginning of the semester but my employer won't reimburse until after grades are submitted at the end...How can I avoid double-dipping if I had to withdraw 529 funds to pay for the semester up front but I can't get reimbursed until after grades are posted at the end? Does that mean those funds just have to go back into the 529?