fixed issue with resume