Fixed menu insertion bug