fixed has('safari') bug