Fix some menu position problems in the context menu tool