Scoring

I used the code i found here
http://www.kirupa.com/developer/mx/score.htm
to create some simple scoring.
It works fine but when i drop it on a fla im working on, the text box thats supposed to show the score displays the text ‘NaN’ instead of the score.
What could possibly be wrong.

heres the original code

on (release) {  	_root.total = _root.total + 100;  }

and heres what i edited it to be (im doing some drag and drop stuff

on (release) {
		stopDrag();
		if (this._droptarget=="/male") {
		setProperty(this, _x, 306.0);
		setProperty(this, _y, 65.0);
		_root.sob.gotoAndPlay ("happy");
                 _root.total = _root.total + 100
	}

This code is on a button by the way