Fix menu bug in chrome & safari