fix issue #1276

resolve functional tests failures on node8 after pr1264 is merged.