Fixed bug with editing a matter.