writeMenuItem template minor fix