fix reset to defaults
Merge pull request #1811 from matiu/fix/reset

fix reset to defaults