Fix bug in tableloader.