fix to barchart going nuts on resize