race condition by 'phantomJS'