Fix index for refactoring
Make perfectScrollbar work