fixing menu freeze