Fixed phantom.js issue