Changing variable to constant in labels processing