Fix "reset button corrupts the entire app" and "z command generates invalid svg in debug points"