Fixed bug where plot wasnt rendered before state push