Remove some buggy code from NO_PATH and NO_ACTION.