Fixed missing variable decleraiton