wma: Fix chunk_table computation.