Fixed bug not seperating the plots correctly.