Marshalls revives after first-half losses