fixing some tables