@jkandasa Thank you so much for this!
It had slipped my mind with other more important issues taking the focus away. Today I found some 'ghost' variables and remembered that I had the problem before, but not the solution. Now I know why!
Anyway it worked perfectly and I will keep a lookout for any future ghost variables. This would be a good thing to have built into ver 2.0