Fixing bug with spacing before doOnce
Fixing doOnce running and rewriting