Fix menu scroll calculations