handle firefox / selenium compatibility issue