Fix for selenium compatibility