Fixed frametotal variable name