How to correct a project when it goes wrong