Fixed a bug with double menu entries.