fix bug setting server by options