fix bug in context menu