fixed context menu issue related to opening incorrect menu on element