Small fixes to resetutil