Fix for function reading binary tables that caused index errors