some fixes

fixed exception in Rate diagram and refresh of diagram on iconization