fixed phantomjs webshot reference errors