Fix bad loop in SETTINGS frame