fix to tables