critical fix fot PhantomJS