Plugins/Quad: fix wrong index and unnecessary clear calls