fix cursor leak.
one more variable for condor queues