fixes for Safari