Fix a bug that cause the first node to be in wrong position.