reset not working on second pass