Fix #1734(menu): type error on reposition