Fixed missing variable declaration