[HOTFIX] Fix scala style issue introduced by #2276.