Fixed minor bug. Optimized tableModels.