fix null pointer bug with rule "a : a;"