Fixed tables deleting for JSON.