VID-1446 Fixed orphaned variable