fixed menu snapping

RoundToNearest produced wrong results for the menu