fixed a serious Core bug