I dont have all the code here but I am almost sure you are absolutely right... Thats why it tolds me in any case undefined or empty reference... I was not aware that I am changing semantic of "anywhere" sub to "define before use" variable with local!
Will try it out but I guess you solved my problem.