Fixed some bugs sub menu rendering.