Fixed warning because of missing variable