Fix problem with refreshing D3 plugin

Fixes #217