fix bug https://github.com/ianli-sc/hp-scroll/issues/1