Plot optimizer tool not working