Fix frame spliting