You should step through your code, and hover over the value of source doc. It sounds like it's not the value you think it is...
You should step through your code, and hover over the value of source doc. It sounds like it's not the value you think it is...