bug in reset