fixed x/y calculation for context-menu #4