Fixed the missing variable

resolves  http://forums.web2project.net/viewtopic.php?f=6&t=9433;