fix issue with phantom js