Fix wierd Mac Safari issue