The scratch here should be dampened on the staccato note, supported by the use of the pedal.