Fixed some stuff with saving/loading of replace tool