Fixed minor issue when building in node8