Fix frame check condition.