fixing last tables