Fix bug and improve resume function