[#424] fixed the onReset function ignoring the given parameters