When a newbie asks for help tracking a bug in a code snippet, the problem is usually is the code he did not post, hence the value of an SSCCE.
~ Roedy (born: 1948-02-04 age: 61)