Fix bug in menu renderer