fix frame cmp