Fixed client resume bug