fixed bugs in reset and scrollin g