fix issues with machine repair