fixing errors in tables