remove some invalid code in server