Fixed wrong var name usage wich was causing an notice.