template scroll fix