Rewriting ambiguous statements