Fix for running on NodeJS.