more fixes for safari and iOS