Fixed NaN for graph width/height attribute