fix resume function