Fix frame length