Fix some wrong spans on obsolete syntax