Fixed nasty bugs with the muse naming algorithm