fixed the missing variable declaration
resolves  http://forums.web2project.net/viewtopic.php?f=6&t=9433;