fixed problem with resume