Fixed null pointer bug when moving in scaled tree.