Fixed missing frame issue: all frames are now correctly processed