save and reset bugs