fix bugs in replaceBindings traversal