fixing problem if server_id is not interger