Fixed missing local keyword.