fix frame control