Fix menu bug in safari