update to button preprocessing, removing lg attribute.