fix serverthread