fix % in reset function