Rewritting error repaired