gluon-config-mode: replace foreach with get_first