some minor fixes
fixing issues resetting and rendering with rewrite