Workaround for phantomjs