Add workaround to fix an array reading problem