Fix menu artifacts when switching categories. Closes #46.