Fix menu render problem