fix a bug in Tabix error handling