Corrected a little part of the sum of frames