Fixed a undefined variable issue.