Fixed the monoid instance. It was just plain broken before.