Fixed bug where some frames weren't being combined.

Just a minor bug fix.