fixes for safari