Fix install rewrite