fixing bug with lessoningredients and through tables