Fixed frame-counting bug in getNumFrames() & parse()