Workaround for bug in phantomjs-node