bug fix: frame numbering