Smooth matrix before editing - not working (yet)