fix early delete bug in server