fixed small bugs in safari