corrected apply_user_settings, now should work correct