Fix #653 resume bug