Fix server capabilities handling