fix the bug about EndingIndicatorRule and getElementType(); Currently, there is still a bug when the main class is vector.