Correctd a missing variable bug.