Fix for old versions of Node.