Fix #763 resume problem