Revert main to working state