fixed another minor bug in smooth-scroll