fix bug with long names in context menu