[fix] Fix issue with undefined variable in Schema::flush()

It was a long day...