Removing ambiguos rules