fixed an error where the parent node was always the west node. Fixed some dereferencing errors of currentNode