Fixing sprite rewrite