fixes legend reload