Fixing up set_languages controller