some logic failed, need to fix NPE...