finish of rebuilding, there is some bugs