fix respond_to for valid_languages