BUG: fix sum over integer frames

closes #4365.