fix for also saving the last table model