Fix menu disply list only working in debug mode.