A foolish bug fix
Improve remainFrame.