sharpen crash due to remainded data in shared matrix, now matrix will be cleared before next insert, but sharpen seems not working