fix tc for phantomjs