Create Menu and Add Item bug

Reproduciability

Reproduciability
Yes
Steps (optionally)
Paste this at top of javascript: var Menu = API.createMenu("Some text", " ", -230, 50, 4); Menu.AddItem(API.createMenuItem("1", " ")); Menu.AddItem(API.createMenuItem("2", " ")); Menu.AddItem(API.createMenuItem("3", " ")); Menu.AddItem(API.createMenuItem("4", " ")); Menu.AddItem(API.createMenuItem("5", " ")); Menu.AddItem(API.createMenuItem("6", " ")); Menu.AddItem(API.createMenuItem("7", " ")); Menu.AddItem(API.createMenuItem("8", " ")); Menu.AddItem(API.createMenuItem("9", " ")); Menu.AddItem(API.createMenuItem("10", " ")); Menu.AddItem(API.createMenuItem("11", " ")); API.onUpdate.connect(function () { API.drawRectangle(1700, 800, 100, 100, 127, 127, 127, 255); } And set Menu.Visible = true;

Message

I dont know if my code is not bugged, but i think it is gt-mp error. I create menu on top of javascript file and draw rectangle by:

Code
  1. Menu.Visible = true;

then Rectangle NOT displaying, but only if Menu have more than 10 elements, if I create menu with in example 5 elements, Rectangle is displaying.