Fixed nodename related and inplace related bugs.